package cn.yunyichina.provider.pay.service;

import cn.yunyichina.provider.framework.exception.CallException;
import cn.yunyichina.provider.pay.entity.PaymentSetting;
import cn.yunyichina.provider.pay.exception.PaySettingNotFoundException;

public interface PaymentSettingService {

    /**
     * 根据APPID查询支付配置
     *
     * @param appId
     * @return
     */
    PaymentSetting queryPaymentSettingByAppId(String appId) throws CallException, PaySettingNotFoundException;

    /**
     * 根据platformOrgAppCode 和 orgCode 查询支付配置
     *
     * @param platformOrgAppCode
     * @param orgCode
     * @return
     */
    PaymentSetting queryPaymentSettingByAppcodeAndOrgcodeAndPaymode(String platformOrgAppCode, String orgCode, short payMode) throws CallException, PaySettingNotFoundException;

}
